//	@file Version: 1.0
//	@file Name: ADP_F_setFade.sqf
//	@file Author: THumbert
//	@file Created: 12/14/2013
//	@file Description: Sets fade of ADP

private["_controls"];
disableSerialization;
_dis = _this select 0;
_amount = _this select 1;
switch (_dis) do {
	case 6001: {_controls = [1200,9400,1648,1647,1601,1400,1405,1500,1565,1602,1603,1604,1605,1606,1608,1609,1610,1611,1612,1613,1448, 2100, 2101,2102,2400,2401,2403,9001,9002,9003,9004]};
	case 6002: {_controls = [1200,1400,1412,1418,1414,1413,1404,1411,1410,1409,1403,1401,1402,1408,1407,1406,1405,1415,1416,1417,1400,1412,1418,9001,9002,9003,9004,9005,9006,9007,9008,9009,9010,2,2420,2421,2423,2401,2402,2403,2404,2409,2414,2405,2410,2415]};
	case 6003: {_controls = [1200,2425,9001,2,2410,2410,2411,2413,1500,2402,2403,2404,2405,2406,2417,2418,2419,2420,2421,1400,1401,2424,1201,1000]};	
};
_amount = _amount / 10;
ADPFade = _amount;
_display = findDisplay _dis;
	{
	_ctrl = _display displayctrl _x;
	_ctrl ctrlSetFade _amount;
	_ctrl ctrlCommit 0.5;
	} forEach _controls;